home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Database Designers / Erwin 3.0 / DISK15 / DATA.15 / Support / CONST40.BAS < prev    next >
Encoding:
BASIC Source File  |  1995-12-15  |  40.8 KB  |  1,222 lines

  1. '
  2. ' Windows API constants
  3. '
  4. Global Const GWL_STYLE = (-16)
  5. Global Const ES_UPPERCASE = &H8&
  6. Global Const ES_LOWERCASE = &H10&
  7.  
  8.  
  9. '
  10. ' Data Access constants
  11. '
  12.  
  13. ' Option argument values (CreateDynaset, etc)
  14. Global Const DB_DENYWRITE = &H1
  15. Global Const DB_DENYREAD = &H2
  16. Global Const DB_READONLY = &H4
  17. Global Const DB_APPENDONLY = &H8
  18. Global Const DB_INCONSISTENT = &H10
  19. Global Const DB_CONSISTENT = &H20
  20. Global Const DB_SQLPASSTHROUGH = &H40
  21.  
  22. ' SetDataAccessOption
  23. Global Const DB_OPTIONINIPATH = 1
  24.  
  25. ' Field Attributes
  26. Global Const DB_FIXEDFIELD = &H1
  27. Global Const DB_VARIABLEFIELD = &H2
  28. Global Const DB_AUTOINCRFIELD = &H10
  29. Global Const DB_UPDATABLEFIELD = &H20
  30.  
  31. ' Field Data Types
  32. Global Const DB_BOOLEAN = 1
  33. Global Const DB_BYTE = 2
  34. Global Const DB_INTEGER = 3
  35. Global Const DB_LONG = 4
  36. Global Const DB_CURRENCY = 5
  37. Global Const DB_SINGLE = 6
  38. Global Const DB_DOUBLE = 7
  39. Global Const DB_DATE = 8
  40. Global Const DB_TEXT = 10
  41. Global Const DB_LONGBINARY = 11
  42. Global Const DB_MEMO = 12
  43.  
  44. ' TableDef Attributes
  45. Global Const DB_ATTACHEXCLUSIVE = &H10000
  46. Global Const DB_ATTACHSAVEPWD = &H20000
  47. Global Const DB_SYSTEMOBJECT = &H80000002
  48. Global Const DB_ATTACHEDTABLE = &H40000000
  49. Global Const DB_ATTACHEDODBC = &H20000000
  50.  
  51. ' ListTables TableType
  52. Global Const DB_TABLE = 1
  53. Global Const DB_QUERYDEF = 5
  54.  
  55. ' ListTables Attributes (for QueryDefs)
  56. Global Const DB_QACTION = &HF0
  57. Global Const DB_QCROSSTAB = &H10
  58. Global Const DB_QDELETE = &H20
  59. Global Const DB_QUPDATE = &H30
  60. Global Const DB_QAPPEND = &H40
  61. Global Const DB_QMAKETABLE = &H50
  62.  
  63. ' ListIndexes IndexAttributes values
  64. Global Const DB_UNIQUE = 1
  65. Global Const DB_PRIMARY = 2
  66. Global Const DB_PROHIBITNULL = 4
  67. Global Const DB_IGNORENULL = 8
  68. ' ListIndexes FieldAttributes value
  69. Global Const DB_DESCENDING = 1  'For each field in Index
  70.  
  71. ' CreateDatabase and CompactDatabase Language constants
  72. Global Const DB_LANG_GENERAL = ";LANGID=0x0809;CP=1252;COUNTRY=0"
  73. Global Const DB_LANG_SPANISH = ";LANGID=0x040A;CP=1252;COUNTRY=0"
  74. Global Const DB_LANG_DUTCH = ";LANGID=0x0413;CP=1252;COUNTRY=0"
  75. Global Const DB_LANG_SWEDFIN = ";LANGID=0x040C;CP=1252;COUNTRY=0"   'VB3 and Access 1.1 Databases
  76. Global Const DB_LANG_NORWDAN = ";LANGID=0x0414;CP=1252;COUNTRY=0"   'VB3 and Access 1.1 Databases
  77. Global Const DB_LANG_ICELANDIC = ";LANGID=0x040F;CP=1252;COUNTRY=0" 'VB3 and Access 1.1 Databases
  78. Global Const DB_LANG_NORDIC = ";LANGID=0x041D;CP=1252;COUNTRY=0"    'Access 1.0 Databases only
  79.  
  80. ' CreateDatabase and CompactDatabase options
  81. Global Const DB_VERSION10 = 1        ' Microsoft Access Version 1.0
  82. Global Const DB_ENCRYPT = 2          ' Make database encrypted.
  83. Global Const DB_DECRYPT = 4          ' Decrypt database while compacting.
  84.  
  85. 'Collating order values
  86. Global Const DB_SORTGENERAL = 256    ' Sort by EFGPI rules (English, French, German,Portuguese, Italian)
  87. Global Const DB_SORTSPANISH = 258    ' Sort by Spanish rules
  88. Global Const DB_SORTDUTCH = 259      ' Sort by Dutch rules
  89. Global Const DB_SORTSWEDFIN = 260    ' Sort by Swedish, Finnish rules
  90. Global Const DB_SORTNORWDAN = 261    ' Sort by Norwegian, Danish rules
  91. Global Const DB_SORTICELANDIC = 262  ' Sort by Icelandic rules
  92. Global Const DB_SORTPDXINTL = 4096   ' Sort by Paradox international rules
  93. Global Const DB_SORTPDXSWE = 4097    ' Sort by Paradox Swedish, Finnish rules
  94. Global Const DB_SORTPDXNOR = 4098    ' Sort by Paradox Norwegian, Danish rules
  95. Global Const DB_SORTUNDEFINED = -1   ' Sort rules are undefined or unknown
  96.  
  97. ''''''''''''''''''''''''''''
  98. ' Visual Basic global constant file. This file can be loaded
  99. ' into a code module.
  100. '
  101. ' Some constants are commented out because they have
  102. ' duplicates (e.g., NONE appears several places).
  103. '
  104. ' If you are updating a Visual Basic application written with
  105. ' an older version, you should replace your global constants
  106. ' with the constants in this file.
  107. '
  108. ''''''''''''''''''''''''''''
  109.  
  110. ' General
  111.  
  112. ' Clipboard formats
  113. Global Const CF_LINK = &HBF00
  114. Global Const CF_TEXT = 1
  115. Global Const CF_BITMAP = 2
  116. Global Const CF_METAFILE = 3
  117. Global Const CF_DIB = 8
  118. Global Const CF_PALETTE = 9
  119.  
  120. ' DragOver
  121. Global Const ENTER = 0
  122. Global Const LEAVE = 1
  123. Global Const OVER = 2
  124.  
  125. ' Drag (controls)
  126. Global Const CANCEL = 0
  127. Global Const BEGIN_DRAG = 1
  128. Global Const END_DRAG = 2
  129.  
  130. ' Show parameters
  131. Global Const MODAL = 1
  132. Global Const MODELESS = 0
  133.  
  134. ' Arrange Method
  135. ' for MDI Forms
  136. Global Const CASCADE = 0
  137. Global Const TILE_HORIZONTAL = 1
  138. Global Const TILE_VERTICAL = 2
  139. Global Const ARRANGE_ICONS = 3
  140.  
  141. 'ZOrder Method
  142. Global Const BRINGTOFRONT = 0
  143. Global Const SENDTOBACK = 1
  144.  
  145. ' Key Codes
  146. Global Const KEY_LBUTTON = &H1
  147. Global Const KEY_RBUTTON = &H2
  148. Global Const KEY_CANCEL = &H3
  149. Global Const KEY_MBUTTON = &H4    ' NOT contiguous with L & RBUTTON
  150. Global Const KEY_BACK = &H8
  151. Global Const KEY_TAB = &H9
  152. Global Const KEY_CLEAR = &HC
  153. Global Const KEY_RETURN = &HD
  154. Global Const KEY_SHIFT = &H10
  155. Global Const KEY_CONTROL = &H11
  156. Global Const KEY_MENU = &H12
  157. Global Const KEY_PAUSE = &H13
  158. Global Const KEY_CAPITAL = &H14
  159. Global Const KEY_ESCAPE = &H1B
  160. Global Const KEY_SPACE = &H20
  161. Global Const KEY_PRIOR = &H21
  162. Global Const KEY_NEXT = &H22
  163. Global Const KEY_END = &H23
  164. Global Const KEY_HOME = &H24
  165. Global Const KEY_LEFT = &H25
  166. Global Const KEY_UP = &H26
  167. Global Const KEY_RIGHT = &H27
  168. Global Const KEY_DOWN = &H28
  169. Global Const KEY_SELECT = &H29
  170. Global Const KEY_PRINT = &H2A
  171. Global Const KEY_EXECUTE = &H2B
  172. Global Const KEY_SNAPSHOT = &H2C
  173. Global Const KEY_INSERT = &H2D
  174. Global Const KEY_DELETE = &H2E
  175. Global Const KEY_HELP = &H2F
  176.  
  177. ' KEY_A thru KEY_Z are the same as their ASCII equivalents: 'A' thru 'Z'
  178. ' KEY_0 thru KEY_9 are the same as their ASCII equivalents: '0' thru '9'
  179.  
  180. Global Const KEY_NUMPAD0 = &H60
  181. Global Const KEY_NUMPAD1 = &H61
  182. Global Const KEY_NUMPAD2 = &H62
  183. Global Const KEY_NUMPAD3 = &H63
  184. Global Const KEY_NUMPAD4 = &H64
  185. Global Const KEY_NUMPAD5 = &H65
  186. Global Const KEY_NUMPAD6 = &H66
  187. Global Const KEY_NUMPAD7 = &H67
  188. Global Const KEY_NUMPAD8 = &H68
  189. Global Const KEY_NUMPAD9 = &H69
  190. Global Const KEY_MULTIPLY = &H6A
  191. Global Const KEY_ADD = &H6B
  192. Global Const KEY_SEPARATOR = &H6C
  193. Global Const KEY_SUBTRACT = &H6D
  194. Global Const KEY_DECIMAL = &H6E
  195. Global Const KEY_DIVIDE = &H6F
  196. Global Const KEY_F1 = &H70
  197. Global Const KEY_F2 = &H71
  198. Global Const KEY_F3 = &H72
  199. Global Const KEY_F4 = &H73
  200. Global Const KEY_F5 = &H74
  201. Global Const KEY_F6 = &H75
  202. Global Const KEY_F7 = &H76
  203. Global Const KEY_F8 = &H77
  204. Global Const KEY_F9 = &H78
  205. Global Const KEY_F10 = &H79
  206. Global Const KEY_F11 = &H7A
  207. Global Const KEY_F12 = &H7B
  208. Global Const KEY_F13 = &H7C
  209. Global Const KEY_F14 = &H7D
  210. Global Const KEY_F15 = &H7E
  211. Global Const KEY_F16 = &H7F
  212.  
  213. Global Const KEY_NUMLOCK = &H90
  214.  
  215. ' Variant VarType tags
  216.  
  217. Global Const V_EMPTY = 0
  218. Global Const V_NULL = 1
  219. Global Const V_INTEGER = 2
  220. Global Const V_LONG = 3
  221. Global Const V_SINGLE = 4
  222. Global Const V_DOUBLE = 5
  223. Global Const V_CURRENCY = 6
  224. Global Const V_DATE = 7
  225. Global Const V_STRING = 8
  226.  
  227.  
  228. ' Event Parameters
  229.  
  230. ' ErrNum (LinkError)
  231. Global Const WRONG_FORMAT = 1
  232. Global Const DDE_SOURCE_CLOSED = 6
  233. Global Const TOO_MANY_LINKS = 7
  234. Global Const DATA_TRANSFER_FAILED = 8
  235.  
  236. ' QueryUnload
  237. Global Const FORM_CONTROLMENU = 0
  238. Global Const FORM_CODE = 1
  239. Global Const APP_WINDOWS = 2
  240. Global Const APP_TASKMANAGER = 3
  241. Global Const FORM_MDIFORM = 4
  242.  
  243. ' Properties
  244.  
  245. ' Colors
  246. Global Const BLACK = &H0&
  247. Global Const RED = &HFF&
  248. Global Const GREEN = &HFF00&
  249. Global Const YELLOW = &HFFFF&
  250. Global Const BLUE = &HFF0000
  251. Global Const MAGENTA = &HFF00FF
  252. Global Const CYAN = &HFFFF00
  253. Global Const WHITE = &HFFFFFF
  254.  
  255. ' System Colors
  256. Global Const SCROLL_BARS = &H80000000           ' Scroll-bars gray area.
  257. Global Const DESKTOP = &H80000001               ' Desktop.
  258. Global Const ACTIVE_TITLE_BAR = &H80000002      ' Active window caption.
  259. Global Const INACTIVE_TITLE_BAR = &H80000003    ' Inactive window caption.
  260. Global Const MENU_BAR = &H80000004              ' Menu background.
  261. Global Const WINDOW_BACKGROUND = &H80000005     ' Window background.
  262. Global Const WINDOW_FRAME = &H80000006          ' Window frame.
  263. Global Const MENU_TEXT = &H80000007             ' Text in menus.
  264. Global Const WINDOW_TEXT = &H80000008           ' Text in windows.
  265. Global Const TITLE_BAR_TEXT = &H80000009        ' Text in caption, size box, scroll-bar arrow box..
  266. Global Const ACTIVE_BORDER = &H8000000A         ' Active window border.
  267. Global Const INACTIVE_BORDER = &H8000000B       ' Inactive window border.
  268. Global Const APPLICATION_WORKSPACE = &H8000000C ' Background color of multiple document interface (MDI) applications.
  269. Global Const HIGHLIGHT = &H8000000D             ' Items selected item in a control.
  270. Global Const HIGHLIGHT_TEXT = &H8000000E        ' Text of item selected in a control.
  271. Global Const BUTTON_FACE = &H8000000F           ' Face shading on command buttons.
  272. Global Const BUTTON_SHADOW = &H80000010         ' Edge shading on command buttons.
  273. Global Const GRAY_TEXT = &H80000011             ' Grayed (disabled) text.  This color is set to 0 if the current display driver does not support a solid gray color.
  274. Global Const BUTTON_TEXT = &H80000012           ' Text on push buttons.
  275.  
  276. ' Enumerated Types
  277.  
  278. ' Align (picture box)
  279. Global Const NONE = 0
  280. Global Const ALIGN_TOP = 1
  281. Global Const ALIGN_BOTTOM = 2
  282.  
  283. ' Alignment
  284. Global Const LEFT_JUSTIFY = 0  ' 0 - Left Justify
  285. Global Const RIGHT_JUSTIFY = 1 ' 1 - Right Justify
  286. Global Const CENTER = 2        ' 2 - Center
  287.  
  288. ' BorderStyle (form)
  289. 'Global Const NONE = 0          ' 0 - None
  290. Global Const FIXED_SINGLE = 1   ' 1 - Fixed Single
  291. Global Const SIZABLE = 2        ' 2 - Sizable (Forms only)
  292. Global Const FIXED_DOUBLE = 3   ' 3 - Fixed Double (Forms only)
  293.  
  294. ' BorderStyle (Shape and Line)
  295. 'Global Const TRANSPARENT = 0    '0 - Transparent
  296. 'Global Const SOLID = 1          '1 - Solid
  297. 'Global Const DASH = 2         ' 2 - Dash
  298. 'Global Const DOT = 3          ' 3 - Dot
  299. 'Global Const DASH_DOT = 4     ' 4 - Dash-Dot
  300. 'Global Const DASH_DOT_DOT = 5 ' 5 - Dash-Dot-Dot
  301. 'Global Const INSIDE_SOLID = 6 ' 6 - Inside Solid
  302.  
  303. ' MousePointer
  304. Global Const DEFAULT = 0        ' 0 - Default
  305. Global Const ARROW = 1          ' 1 - Arrow
  306. Global Const CROSSHAIR = 2      ' 2 - Cross
  307. Global Const IBEAM = 3          ' 3 - I-Beam
  308. Global Const ICON_POINTER = 4   ' 4 - Icon
  309. Global Const SIZE_POINTER = 5   ' 5 - Size
  310. Global Const SIZE_NE_SW = 6     ' 6 - Size NE SW
  311. Global Const SIZE_N_S = 7       ' 7 - Size N S
  312. Global Const SIZE_NW_SE = 8     ' 8 - Size NW SE
  313. Global Const SIZE_W_E = 9       ' 9 - Size W E
  314. Global Const UP_ARROW = 10      ' 10 - Up Arrow
  315. Global Const HOURGLASS = 11     ' 11 - Hourglass
  316. Global Const NO_DROP = 12       ' 12 - No drop
  317.  
  318. ' DragMode
  319. Global Const MANUAL = 0    ' 0 - Manual
  320. Global Const AUTOMATIC = 1 ' 1 - Automatic
  321.  
  322. ' DrawMode
  323. Global Const BLACKNESS = 1      ' 1 - Blackness
  324. Global Const NOT_MERGE_PEN = 2  ' 2 - Not Merge Pen
  325. Global Const MASK_NOT_PEN = 3   ' 3 - Mask Not Pen
  326. Global Const NOT_COPY_PEN = 4   ' 4 - Not Copy Pen
  327. Global Const MASK_PEN_NOT = 5   ' 5 - Mask Pen Not
  328. Global Const INVERT = 6         ' 6 - Invert
  329. Global Const XOR_PEN = 7        ' 7 - Xor Pen
  330. Global Const NOT_MASK_PEN = 8   ' 8 - Not Mask Pen
  331. Global Const MASK_PEN = 9       ' 9 - Mask Pen
  332. Global Const NOT_XOR_PEN = 10   ' 10 - Not Xor Pen
  333. Global Const NOP = 11           ' 11 - Nop
  334. Global Const MERGE_NOT_PEN = 12 ' 12 - Merge Not Pen
  335. Global Const COPY_PEN = 13      ' 13 - Copy Pen
  336. Global Const MERGE_PEN_NOT = 14 ' 14 - Merge Pen Not
  337. Global Const MERGE_PEN = 15     ' 15 - Merge Pen
  338. Global Const WHITENESS = 16     ' 16 - Whiteness
  339.  
  340. ' DrawStyle
  341. Global Const SOLID = 0        ' 0 - Solid
  342. Global Const DASH = 1         ' 1 - Dash
  343. Global Const DOT = 2          ' 2 - Dot
  344. Global Const DASH_DOT = 3     ' 3 - Dash-Dot
  345. Global Const DASH_DOT_DOT = 4 ' 4 - Dash-Dot-Dot
  346. Global Const INVISIBLE = 5    ' 5 - Invisible
  347. Global Const INSIDE_SOLID = 6 ' 6 - Inside Solid
  348.  
  349. ' FillStyle
  350. ' Global Const SOLID = 0           ' 0 - Solid
  351. Global Const TRANSPARENT = 1       ' 1 - Transparent
  352. Global Const HORIZONTAL_LINE = 2   ' 2 - Horizontal Line
  353. Global Const VERTICAL_LINE = 3     ' 3 - Vertical Line
  354. Global Const UPWARD_DIAGONAL = 4   ' 4 - Upward Diagonal
  355. Global Const DOWNWARD_DIAGONAL = 5 ' 5 - Downward Diagonal
  356. Global Const CROSS = 6             ' 6 - Cross
  357. Global Const DIAGONAL_CROSS = 7    ' 7 - Diagonal Cross
  358.  
  359. ' LinkMode (forms and controls)
  360. ' Global Const NONE = 0         ' 0 - None
  361. Global Const LINK_SOURCE = 1    ' 1 - Source (forms only)
  362. Global Const LINK_AUTOMATIC = 1 ' 1 - Automatic (controls only)
  363. Global Const LINK_MANUAL = 2    ' 2 - Manual (controls only)
  364. Global Const LINK_NOTIFY = 3    ' 3 - Notify (controls only)
  365.  
  366. ' LinkMode (kept for VB1.0 compatibility, use new constants instead)
  367. Global Const HOT = 1    ' 1 - Hot (controls only)
  368. Global Const SERVER = 1 ' 1 - Server (forms only)
  369. Global Const COLD = 2   ' 2 - Cold (controls only)
  370.  
  371.  
  372. ' ScaleMode
  373. Global Const User = 0        ' 0 - User
  374. Global Const TWIPS = 1       ' 1 - Twip
  375. Global Const POINTS = 2      ' 2 - Point
  376. Global Const PIXELS = 3      ' 3 - Pixel
  377. Global Const CHARACTERS = 4  ' 4 - Character
  378. Global Const INCHES = 5      ' 5 - Inch
  379. Global Const MILLIMETERS = 6 ' 6 - Millimeter
  380. Global Const CENTIMETERS = 7 ' 7 - Centimeter
  381.  
  382. ' ScrollBar
  383. ' Global Const NONE     = 0 ' 0 - None
  384. Global Const HORIZONTAL = 1 ' 1 - Horizontal
  385. Global Const VERTICAL = 2   ' 2 - Vertical
  386. Global Const BOTH = 3       ' 3 - Both
  387.  
  388. ' Shape
  389. Global Const SHAPE_RECTANGLE = 0
  390. Global Const SHAPE_SQUARE = 1
  391. Global Const SHAPE_OVAL = 2
  392. Global Const SHAPE_CIRCLE = 3
  393. Global Const SHAPE_ROUNDED_RECTANGLE = 4
  394. Global Const SHAPE_ROUNDED_SQUARE = 5
  395.  
  396. ' WindowState
  397. Global Const NORMAL = 0    ' 0 - Normal
  398. Global Const MINIMIZED = 1 ' 1 - Minimized
  399. Global Const MAXIMIZED = 2 ' 2 - Maximized
  400.  
  401. ' Check Value
  402. Global Const UNCHECKED = 0 ' 0 - Unchecked
  403. Global Const CHECKED = 1   ' 1 - Checked
  404. Global Const GRAYED = 2    ' 2 - Grayed
  405.  
  406. ' Shift parameter masks
  407. Global Const SHIFT_MASK = 1
  408. Global Const CTRL_MASK = 2
  409. Global Const ALT_MASK = 4
  410.  
  411. ' Button parameter masks
  412. Global Const LEFT_BUTTON = 1
  413. Global Const RIGHT_BUTTON = 2
  414. Global Const MIDDLE_BUTTON = 4
  415.  
  416. ' Function Parameters
  417. ' MsgBox parameters
  418. Global Const MB_OK = 0                 ' OK button only
  419. Global Const MB_OKCANCEL = 1           ' OK and Cancel buttons
  420. Global Const MB_ABORTRETRYIGNORE = 2   ' Abort, Retry, and Ignore buttons
  421. Global Const MB_YESNOCANCEL = 3        ' Yes, No, and Cancel buttons
  422. Global Const MB_YESNO = 4              ' Yes and No buttons
  423. Global Const MB_RETRYCANCEL = 5        ' Retry and Cancel buttons
  424.  
  425. Global Const MB_ICONSTOP = 16          ' Critical message
  426. Global Const MB_ICONQUESTION = 32      ' Warning query
  427. Global Const MB_ICONEXCLAMATION = 48   ' Warning message
  428. Global Const MB_ICONINFORMATION = 64   ' Information message
  429.  
  430. Global Const MB_APPLMODAL = 0          ' Application Modal Message Box
  431. Global Const MB_DEFBUTTON1 = 0         ' First button is default
  432. Global Const MB_DEFBUTTON2 = 256       ' Second button is default
  433. Global Const MB_DEFBUTTON3 = 512       ' Third button is default
  434. Global Const MB_SYSTEMMODAL = 4096      'System Modal
  435.  
  436. ' MsgBox return values
  437. Global Const IDOK = 1                  ' OK button pressed
  438. Global Const IDCANCEL = 2              ' Cancel button pressed
  439. Global Const IDABORT = 3               ' Abort button pressed
  440. Global Const IDRETRY = 4               ' Retry button pressed
  441. Global Const IDIGNORE = 5              ' Ignore button pressed
  442. Global Const IDYES = 6                 ' Yes button pressed
  443. Global Const IDNO = 7                  ' No button pressed
  444.  
  445. ' SetAttr, Dir, GetAttr functions
  446. Global Const ATTR_NORMAL = 0
  447. Global Const ATTR_READONLY = 1
  448. Global Const ATTR_HIDDEN = 2
  449. Global Const ATTR_SYSTEM = 4
  450. Global Const ATTR_VOLUME = 8
  451. Global Const ATTR_DIRECTORY = 16
  452. Global Const ATTR_ARCHIVE = 32
  453.  
  454. 'Grid
  455. 'ColAlignment,FixedAlignment Properties
  456. Global Const GRID_ALIGNLEFT = 0
  457. Global Const GRID_ALIGNRIGHT = 1
  458. Global Const GRID_ALIGNCENTER = 2
  459.  
  460. 'Fillstyle Property
  461. Global Const GRID_SINGLE = 0
  462. Global Const GRID_REPEAT = 1
  463.  
  464.  
  465. 'Data control
  466. 'Error event Response arguments
  467. Global Const DATA_ERRCONTINUE = 0
  468. Global Const DATA_ERRDISPLAY = 1
  469.  
  470. 'Editmode property values
  471. Global Const DATA_EDITNONE = 0
  472. Global Const DATA_EDITMODE = 1
  473. Global Const DATA_EDITADD = 2
  474.  
  475. ' Options property values
  476. Global Const DATA_DENYWRITE = &H1
  477. Global Const DATA_DENYREAD = &H2
  478. Global Const DATA_READONLY = &H4
  479. Global Const DATA_APPENDONLY = &H8
  480. Global Const DATA_INCONSISTENT = &H10
  481. Global Const DATA_CONSISTENT = &H20
  482. Global Const DATA_SQLPASSTHROUGH = &H40
  483.  
  484. 'Validate event Action arguments
  485. Global Const DATA_ACTIONCANCEL = 0
  486. Global Const DATA_ACTIONMOVEFIRST = 1
  487. Global Const DATA_ACTIONMOVEPREVIOUS = 2
  488. Global Const DATA_ACTIONMOVENEXT = 3
  489. Global Const DATA_ACTIONMOVELAST = 4
  490. Global Const DATA_ACTIONADDNEW = 5
  491. Global Const DATA_ACTIONUPDATE = 6
  492. Global Const DATA_ACTIONDELETE = 7
  493. Global Const DATA_ACTIONFIND = 8
  494. Global Const DATA_ACTIONBOOKMARK = 9
  495. Global Const DATA_ACTIONCLOSE = 10
  496. Global Const DATA_ACTIONUNLOAD = 11
  497.  
  498.  
  499. 'OLE Client Control
  500. 'Actions
  501. Global Const OLE_CREATE_EMBED = 0
  502. Global Const OLE_CREATE_NEW = 0           'from ole1 control
  503. Global Const OLE_CREATE_LINK = 1
  504. Global Const OLE_CREATE_FROM_FILE = 1     'from ole1 control
  505. Global Const OLE_COPY = 4
  506. Global Const OLE_PASTE = 5
  507. Global Const OLE_UPDATE = 6
  508. Global Const OLE_ACTIVATE = 7
  509. Global Const OLE_CLOSE = 9
  510. Global Const OLE_DELETE = 10
  511. Global Const OLE_SAVE_TO_FILE = 11
  512. Global Const OLE_READ_FROM_FILE = 12
  513. Global Const OLE_INSERT_OBJ_DLG = 14
  514. Global Const OLE_PASTE_SPECIAL_DLG = 15
  515. Global Const OLE_FETCH_VERBS = 17
  516. Global Const OLE_SAVE_TO_OLE1FILE = 18
  517.  
  518. 'OLEType
  519. Global Const OLE_LINKED = 0
  520. Global Const OLE_EMBEDDED = 1
  521. Global Const OLE_NONE = 3
  522.  
  523. 'OLETypeAllowed
  524. Global Const OLE_EITHER = 2
  525.  
  526. 'UpdateOptions
  527. Global Const OLE_AUTOMATIC = 0
  528. Global Const OLE_FROZEN = 1
  529. Global Const OLE_MANUAL = 2
  530.  
  531. 'AutoActivate modes
  532. 'Note that OLE_ACTIVATE_GETFOCUS only applies to objects that
  533. 'support "inside-out" activation.  See related Verb notes below.
  534. Global Const OLE_ACTIVATE_MANUAL = 0
  535. Global Const OLE_ACTIVATE_GETFOCUS = 1
  536. Global Const OLE_ACTIVATE_DOUBLECLICK = 2
  537.  
  538. 'SizeModes
  539. Global Const OLE_SIZE_CLIP = 0
  540. Global Const OLE_SIZE_STRETCH = 1
  541. Global Const OLE_SIZE_AUTOSIZE = 2
  542.  
  543. 'DisplayTypes
  544. Global Const OLE_DISPLAY_CONTENT = 0
  545. Global Const OLE_DISPLAY_ICON = 1
  546.  
  547. 'Update Event Constants
  548. Global Const OLE_CHANGED = 0
  549. Global Const OLE_SAVED = 1
  550. Global Const OLE_CLOSED = 2
  551. Global Const OLE_RENAMED = 3
  552.  
  553. 'Special Verb Values
  554. Global Const VERB_PRIMARY = 0
  555. Global Const VERB_SHOW = -1
  556. Global Const VERB_OPEN = -2
  557. Global Const VERB_HIDE = -3
  558. Global Const VERB_INPLACEUIACTIVATE = -4
  559. Global Const VERB_INPLACEACTIVATE = -5
  560. 'The last two verbs are for objects that support "inside-out" activation,
  561. 'meaning they can be edited in-place, and that they support being left
  562. 'in-place-active even when the input focus moves to another control or form.
  563. 'These objects actually have 2 levels of being active.  "InPlace Active"
  564. 'means that the object is ready for the user to click inside it and start
  565. 'working with it.  "In-Place UI-Active" means that, in addition, if the object
  566. 'has any other UI associated with it, such as floating palette windows,
  567. 'that those windows are visible and ready for use.  Any number of objects
  568. 'can be "In-Place Active" at a time, although only one can be
  569. '"InPlace UI-Active".
  570.  
  571. 'You can cause an object to move to either one of states programmatically by
  572. 'setting the Verb property to the appropriate verb and setting
  573. 'Action=OLE_ACTIVATE.
  574.  
  575. 'Also, if you set AutoActivate = OLE_ACTIVATE_GETFOCUS, the server will
  576. 'automatically be put into "InPlace UI-Active" state when the user clicks
  577. 'on or tabs into the control.
  578.  
  579. 'VerbFlag Bit Masks
  580. Global Const VERBFLAG_GRAYED = &H1
  581. Global Const VERBFLAG_DISABLED = &H2
  582. Global Const VERBFLAG_CHECKED = &H8
  583. Global Const VERBFLAG_SEPARATOR = &H800
  584.  
  585. 'MiscFlag Bits - Or these together as desired for special behaviors
  586.  
  587. 'MEMSTORAGE causes the control to use memory to store the object while
  588. '           it is loaded.  This is faster than the default (disk-tempfile),
  589. '           but can consume a lot of memory for objects whose data takes
  590. '           up a lot of space, such as the bitmap for a paint program.
  591. Global Const OLE_MISCFLAG_MEMSTORAGE = &H1
  592.  
  593. 'DISABLEINPLACE overrides the control's default behavior of allowing
  594. '           in-place activation for objects that support it.  If you
  595. '           are having problems activating an object inplace, you can
  596. '           force it to always activate in a separate window by setting this
  597. '           bit
  598. Global Const OLE_MISCFLAG_DISABLEINPLACE = &H2
  599.  
  600. 'Common Dialog Control
  601. 'Action Property
  602. Global Const DLG_FILE_OPEN = 1
  603. Global Const DLG_FILE_SAVE = 2
  604. Global Const DLG_COLOR = 3
  605. Global Const DLG_FONT = 4
  606. Global Const DLG_PRINT = 5
  607. Global Const DLG_HELP = 6
  608.  
  609. 'File Open/Save Dialog Flags
  610. Global Const OFN_READONLY = &H1&
  611. Global Const OFN_OVERWRITEPROMPT = &H2&
  612. Global Const OFN_HIDEREADONLY = &H4&
  613. Global Const OFN_NOCHANGEDIR = &H8&
  614. Global Const OFN_SHOWHELP = &H10&
  615. Global Const OFN_NOVALIDATE = &H100&
  616. Global Const OFN_ALLOWMULTISELECT = &H200&
  617. Global Const OFN_EXTENSIONDIFFERENT = &H400&
  618. Global Const OFN_PATHMUSTEXIST = &H800&
  619. Global Const OFN_FILEMUSTEXIST = &H1000&
  620. Global Const OFN_CREATEPROMPT = &H2000&
  621. Global Const OFN_SHAREAWARE = &H4000&
  622. Global Const OFN_NOREADONLYRETURN = &H8000&
  623.  
  624. 'Color Dialog Flags
  625. Global Const CC_RGBINIT = &H1&
  626. Global Const CC_FULLOPEN = &H2&
  627. Global Const CC_PREVENTFULLOPEN = &H4&
  628. Global Const CC_SHOWHELP = &H8&
  629.  
  630. 'Fonts Dialog Flags
  631. Global Const CF_SCREENFONTS = &H1&
  632. Global Const CF_PRINTERFONTS = &H2&
  633. Global Const CF_BOTH = &H3&
  634. Global Const CF_SHOWHELP = &H4&
  635. Global Const CF_INITTOLOGFONTSTRUCT = &H40&
  636. Global Const CF_USESTYLE = &H80&
  637. Global Const CF_EFFECTS = &H100&
  638. Global Const CF_APPLY = &H200&
  639. Global Const CF_ANSIONLY = &H400&
  640. Global Const CF_NOVECTORFONTS = &H800&
  641. Global Const CF_NOSIMULATIONS = &H1000&
  642. Global Const CF_LIMITSIZE = &H2000&
  643. Global Const CF_FIXEDPITCHONLY = &H4000&
  644. Global Const CF_WYSIWYG = &H8000&         'must also have CF_SCREENFONTS & CF_PRINTERFONTS
  645. Global Const CF_FORCEFONTEXIST = &H10000
  646. Global Const CF_SCALABLEONLY = &H20000
  647. Global Const CF_TTONLY = &H40000
  648. Global Const CF_NOFACESEL = &H80000
  649. Global Const CF_NOSTYLESEL = &H100000
  650. Global Const CF_NOSIZESEL = &H200000
  651.  
  652. 'Printer Dialog Flags
  653. Global Const PD_ALLPAGES = &H0&
  654. Global Const PD_SELECTION = &H1&
  655. Global Const PD_PAGENUMS = &H2&
  656. Global Const PD_NOSELECTION = &H4&
  657. Global Const PD_NOPAGENUMS = &H8&
  658. Global Const PD_COLLATE = &H10&
  659. Global Const PD_PRINTTOFILE = &H20&
  660. Global Const PD_PRINTSETUP = &H40&
  661. Global Const PD_NOWARNING = &H80&
  662. Global Const PD_RETURNDC = &H100&
  663. Global Const PD_RETURNIC = &H200&
  664. Global Const PD_RETURNDEFAULT = &H400&
  665. Global Const PD_SHOWHELP = &H800&
  666. Global Const PD_USEDEVMODECOPIES = &H40000
  667. Global Const PD_DISABLEPRINTTOFILE = &H80000
  668. Global Const PD_HIDEPRINTTOFILE = &H100000
  669.  
  670. 'Help Constants
  671. Global Const HELP_CONTEXT = &H1           'Display topic in ulTopic
  672. Global Const HELP_QUIT = &H2              'Terminate help
  673. Global Const HELP_INDEX = &H3             'Display index
  674. Global Const HELP_CONTENTS = &H3
  675. Global Const HELP_HELPONHELP = &H4        'Display help on using help
  676. Global Const HELP_SETINDEX = &H5          'Set the current Index for multi index help
  677. Global Const HELP_SETCONTENTS = &H5
  678. Global Const HELP_CONTEXTPOPUP = &H8
  679. Global Const HELP_FORCEFILE = &H9
  680. Global Const HELP_KEY = &H101             'Display topic for keyword in offabData
  681. Global Const HELP_COMMAND = &H102
  682. Global Const HELP_PARTIALKEY = &H105      'call the search engine in winhelp
  683.  
  684. 'Error Constants
  685. Global Const CDERR_DIALOGFAILURE = -32768
  686.  
  687. Global Const CDERR_GENERALCODES = &H7FFF
  688. Global Const CDERR_STRUCTSIZE = &H7FFE
  689. Global Const CDERR_INITIALIZATION = &H7FFD
  690. Global Const CDERR_NOTEMPLATE = &H7FFC
  691. Global Const CDERR_NOHINSTANCE = &H7FFB
  692. Global Const CDERR_LOADSTRFAILURE = &H7FFA
  693. Global Const CDERR_FINDRESFAILURE = &H7FF9
  694. Global Const CDERR_LOADRESFAILURE = &H7FF8
  695. Global Const CDERR_LOCKRESFAILURE = &H7FF7
  696. Global Const CDERR_MEMALLOCFAILURE = &H7FF6
  697. Global Const CDERR_MEMLOCKFAILURE = &H7FF5
  698. Global Const CDERR_NOHOOK = &H7FF4
  699.  
  700. 'Added for CMDIALOG.VBX
  701. Global Const CDERR_CANCEL = &H7FF3
  702. Global Const CDERR_NODLL = &H7FF2
  703. Global Const CDERR_ERRPROC = &H7FF1
  704. Global Const CDERR_ALLOC = &H7FF0
  705. Global Const CDERR_HELP = &H7FEF
  706.  
  707. Global Const PDERR_PRINTERCODES = &H6FFF
  708. Global Const PDERR_SETUPFAILURE = &H6FFE
  709. Global Const PDERR_PARSEFAILURE = &H6FFD
  710. Global Const PDERR_RETDEFFAILURE = &H6FFC
  711. Global Const PDERR_LOADDRVFAILURE = &H6FFB
  712. Global Const PDERR_GETDEVMODEFAIL = &H6FFA
  713. Global Const PDERR_INITFAILURE = &H6FF9
  714. Global Const PDERR_NODEVICES = &H6FF8
  715. Global Const PDERR_NODEFAULTPRN = &H6FF7
  716. Global Const PDERR_DNDMMISMATCH = &H6FF6
  717. Global Const PDERR_CREATEICFAILURE = &H6FF5
  718. Global Const PDERR_PRINTERNOTFOUND = &H6FF4
  719.  
  720. Global Const CFERR_CHOOSEFONTCODES = &H5FFF
  721. Global Const CFERR_NOFONTS = &H5FFE
  722.  
  723. Global Const FNERR_FILENAMECODES = &H4FFF
  724. Global Const FNERR_SUBCLASSFAILURE = &H4FFE
  725. Global Const FNERR_INVALIDFILENAME = &H4FFD
  726. Global Const FNERR_BUFFERTOOSMALL = &H4FFC
  727.  
  728. Global Const FRERR_FINDREPLACECODES = &H3FFF
  729. Global Const CCERR_CHOOSECOLORCODES = &H2FFF
  730.  
  731.  
  732. '---------------------------------------------------------
  733. '      Table of Contents for Visual Basic Professional
  734. '
  735. '       1.  3-D Controls
  736. '           (Frame/Panel/Option/Check/Command/Group Push)
  737. '       2.  Animated Button
  738. '       3.  Gauge Control
  739. '       4.  Graph Control Section
  740. '       5.  Key Status Control
  741. '       6.  Spin Button
  742. '       7.  MCI Control (Multimedia)
  743. '       8.  Masked Edit Control
  744. '       9.  Comm Control
  745. '       10. Outline Control
  746. '---------------------------------------------------------
  747.  
  748.  
  749. '-------------------------------------------------------------------
  750. '3D Controls
  751. '-------------------------------------------------------------------
  752. 'Alignment (Check Box)
  753. Global Const SSCB_TEXT_RIGHT = 0         '0 - Text to the right
  754. Global Const SSCB_TEXT_LEFT = 1          '1 - Text to the left
  755.  
  756. 'Alignment (Option Button)
  757. Global Const SSOB_TEXT_RIGHT = 0         '0 - Text to the right
  758. Global Const SSOB_TEXT_LEFT = 1          '1 - Text to the left
  759.  
  760. 'Alignment (Frame)
  761. Global Const SSFR_LEFT_JUSTIFY = 0       '0 - Left justify text
  762. Global Const SSFR_RIGHT_JUSTIFY = 1      '1 - Right justify text
  763. Global Const SSFR_CENTER = 2             '2 - Center text
  764.  
  765. 'Alignment (Panel)
  766. Global Const SSPN_LEFT_TOP = 0           '0 - Text to left and top
  767. Global Const SSPN_LEFT_MIDDLE = 1        '1 - Text to left and middle
  768. Global Const SSPN_LEFT_BOTTOM = 2        '2 - Text to left and bottom
  769. Global Const SSPN_RIGHT_TOP = 3          '3 - Text to right and top
  770. Global Const SSPN_RIGHT_MIDDLE = 4       '4 - Text to right and middle
  771. Global Const SSPN_RIGHT_BOTTOM = 5       '5 - Text to right and bottom
  772. Global Const SSPN_CENTER_TOP = 6         '6 - Text to center and top
  773. Global Const SSPN_CENTER_MIDDLE = 7      '7 - Text to center and middle
  774. Global Const SSPN_CENTER_BOTTOM = 8      '8 - Text to center and bottom
  775.  
  776. 'Autosize (Command Button)
  777. Global Const SS_AUTOSIZE_NONE = 0        '0 - No Autosizing
  778. Global Const SSPB_AUTOSIZE_PICTOBUT = 1  '0 - Autosize Picture to Button
  779. Global Const SSPB_AUTOSIZE_BUTTOPIC = 2  '0 - Autosize Button to Picture
  780.  
  781. 'Autosize (Ribbon Button)
  782. 'Global Const SS_AUTOSIZE_NONE      = 0  '0 - No Autosizing
  783. Global Const SSRI_AUTOSIZE_PICTOBUT = 1  '0 - Autosize Picture to Button
  784. Global Const SSRI_AUTOSIZE_BUTTOPIC = 2  '0 - Autosize Button to Picture
  785.  
  786. 'Autosize (Panel)
  787. 'Global Const SS_AUTOSIZE_NONE    = 0    '0 - No Autosizing
  788. Global Const SSPN_AUTOSIZE_WIDTH = 1     '1 - Autosize Panel width to Caption
  789. Global Const SSPN_AUTOSIZE_HEIGHT = 2    '2 - Autosize Panel height to Caption
  790. Global Const SSPN_AUTOSIZE_CHILD = 3     '3 - Autosize Child to Panel
  791.  
  792. 'BevelInner (Panel)
  793. Global Const SS_BEVELINNER_NONE = 0      '0 - No Inner Bevel
  794. Global Const SS_BEVELINNER_INSET = 1     '1 - Inset Inner Bevel
  795. Global Const SS_BEVELINNER_RAISED = 2    '2 - Raised Inner Bevel
  796.  
  797. 'BevelOuter (Panel)
  798. Global Const SS_BEVELOUTER_NONE = 0      '0 - No Outer Bevel
  799. Global Const SS_BEVELOUTER_INSET = 1     '1 - Inset Outer Bevel
  800. Global Const SS_BEVELOUTER_RAISED = 2    '2 - Raised Outer Bevel
  801.  
  802. 'FloodType (Panel)
  803. Global Const SS_FLOODTYPE_NONE = 0       '0 - No flood
  804. Global Const SS_FLOODTYPE_L_TO_R = 1     '1 - Left to light
  805. Global Const SS_FLOODTYPE_R_TO_L = 2     '2 - Right to left
  806. Global Const SS_FLOODTYPE_T_TO_B = 3     '3 - Top to bottom
  807. Global Const SS_FLOODTYPE_B_TO_T = 4     '4 - Bottom to top
  808. Global Const SS_FLOODTYPE_CIRCLE = 5     '5 - Widening circle
  809.  
  810. 'Font3D (Panel, Command Button, Option Button, Check Box, Frame)
  811. Global Const SS_FONT3D_NONE = 0          '0 - No 3-D text
  812. Global Const SS_FONT3D_RAISED_LIGHT = 1  '1 - Raised with light shading
  813. Global Const SS_FONT3D_RAISED_HEAVY = 2  '2 - Raised with heavy shading
  814. Global Const SS_FONT3D_INSET_LIGHT = 3   '3 - Inset with light shading
  815. Global Const SS_FONT3D_INSET_HEAVY = 4   '4 - Inset with heavy shading
  816.  
  817. 'PictureDnChange (Ribbon Button)
  818. Global Const SS_PICDN_NOCHANGE = 0       '0 - Use 'Up'bitmap with no change
  819. Global Const SS_PICDN_DITHER = 1         '1 - Dither 'Up'bitmap
  820. Global Const SS_PICDN_INVERT = 2         '2 - Invert 'Up'bitmap
  821.  
  822. 'ShadowColor (Panel, Frame)
  823. Global Const SS_SHADOW_DARKGREY = 0      '0 - Dark grey shadow
  824. Global Const SS_SHADOW_BLACK = 1         '1 - Black shadow
  825.  
  826. 'ShadowStyle (Frame)
  827. Global Const SS_SHADOW_INSET = 0         '0 - Shadow inset
  828. Global Const SS_SHADOW_RAISED = 1        '1 - Shadow raised
  829.  
  830.  
  831. '---------------------------------------
  832. 'Animated Button
  833. '---------------------------------------
  834. 'Cycle property
  835. Global Const ANI_ANIMATED = 0
  836. Global Const ANI_MULTISTATE = 1
  837. Global Const ANI_TWO_STATE = 2
  838.  
  839. 'Click Filter property
  840. Global Const ANI_ANYWHERE = 0
  841. Global Const ANI_IMAGE_AND_TEXT = 1
  842. Global Const ANI_IMAGE = 2
  843. Global Const ANI_TEXT = 3
  844.  
  845. 'PicDrawMode Property
  846. Global Const ANI_XPOS_YPOS = 0
  847. Global Const ANI_AUTOSIZE = 1
  848. Global Const ANI_STRETCH = 2
  849.  
  850. 'SpecialOp Property
  851. Global Const ANI_CLICK = 1
  852.  
  853. 'TextPosition Property
  854. Global Const ANI_CENTER = 0
  855. Global Const ANI_LEFT = 1
  856. Global Const ANI_RIGHT = 2
  857. Global Const ANI_BOTTON = 3
  858. Global Const ANI_TOP = 4
  859.  
  860.  
  861. '---------------------------------------
  862. 'GAUGE
  863. '---------------------------------------
  864. 'Style Property
  865. Global Const GAUGE_HORIZ = 0
  866. Global Const GAUGE_VERT = 1
  867. Global Const GAUGE_SEMI = 2
  868. Global Const GAUGE_FULL = 3
  869.  
  870.  
  871. '----------------------------------------
  872. 'Graph Control
  873. '----------------------------------------
  874. 'General
  875. Global Const G_NONE = 0
  876. Global Const G_DEFAULT = 0
  877.  
  878. Global Const G_OFF = 0
  879. Global Const G_ON = 1
  880.  
  881. Global Const G_MONO = 0
  882. Global Const G_COLOR = 1
  883.  
  884. 'Graph Types
  885. Global Const G_PIE2D = 1
  886. Global Const G_PIE3D = 2
  887. Global Const G_BAR2D = 3
  888. Global Const G_BAR3D = 4
  889. Global Const G_GANTT = 5
  890. Global Const G_LINE = 6
  891. Global Const G_LOGLIN = 7
  892. Global Const G_AREA = 8
  893. Global Const G_SCATTER = 9
  894. Global Const G_POLAR = 10
  895. Global Const G_HLC = 11
  896.  
  897. 'Colors
  898. Global Const G_BLACK = 0
  899. Global Const G_BLUE = 1
  900. Global Const G_GREEN = 2
  901. Global Const G_CYAN = 3
  902. Global Const G_RED = 4
  903. Global Const G_MAGENTA = 5
  904. Global Const G_BROWN = 6
  905. Global Const G_LIGHT_GRAY = 7
  906. Global Const G_DARK_GRAY = 8
  907. Global Const G_LIGHT_BLUE = 9
  908. Global Const G_LIGHT_GREEN = 10
  909. Global Const G_LIGHT_CYAN = 11
  910. Global Const G_LIGHT_RED = 12
  911. Global Const G_LIGHT_MAGENTA = 13
  912. Global Const G_YELLOW = 14
  913. Global Const G_WHITE = 15
  914. Global Const G_AUTOBW = 16
  915.  
  916. 'Patterns
  917. Global Const G_SOLID = 0
  918. Global Const G_HOLLOW = 1
  919. Global Const G_HATCH1 = 2
  920. Global Const G_HATCH2 = 3
  921. Global Const G_HATCH3 = 4
  922. Global Const G_HATCH4 = 5
  923. Global Const G_HATCH5 = 6
  924. Global Const G_HATCH6 = 7
  925. Global Const G_BITMAP1 = 16
  926. Global Const G_BITMAP2 = 17
  927. Global Const G_BITMAP3 = 18
  928. Global Const G_BITMAP4 = 19
  929. Global Const G_BITMAP5 = 20
  930. Global Const G_BITMAP6 = 21
  931. Global Const G_BITMAP7 = 22
  932. Global Const G_BITMAP8 = 23
  933. Global Const G_BITMAP9 = 24
  934. Global Const G_BITMAP10 = 25
  935. Global Const G_BITMAP11 = 26
  936. Global Const G_BITMAP12 = 27
  937. Global Const G_BITMAP13 = 28
  938. Global Const G_BITMAP14 = 29
  939. Global Const G_BITMAP15 = 30
  940. Global Const G_BITMAP16 = 31
  941.  
  942. 'Symbols
  943. Global Const G_CROSS_PLUS = 0
  944. Global Const G_CROSS_TIMES = 1
  945. Global Const G_TRIANGLE_UP = 2
  946. Global Const G_SOLID_TRIANGLE_UP = 3
  947. Global Const G_TRIANGLE_DOWN = 4
  948. Global Const G_SOLID_TRIANGLE_DOWN = 5
  949. Global Const G_SQUARE = 6
  950. Global Const G_SOLID_SQUARE = 7
  951. Global Const G_DIAMOND = 8
  952. Global Const G_SOLID_DIAMOND = 9
  953.  
  954. 'Line Styles
  955. 'Global Const G_SOLID = 0
  956. Global Const G_DASH = 1
  957. Global Const G_DOT = 2
  958. Global Const G_DASHDOT = 3
  959. Global Const G_DASHDOTDOT = 4
  960.  
  961. 'Grids
  962. Global Const G_HORIZONTAL = 1
  963. Global Const G_VERTICAL = 2
  964.  
  965. 'Statistics
  966. Global Const G_MEAN = 1
  967. Global Const G_MIN_MAX = 2
  968. Global Const G_STD_DEV = 4
  969. Global Const G_BEST_FIT = 8
  970.  
  971. 'Data Arrays
  972. Global Const G_GRAPH_DATA = 1
  973. Global Const G_COLOR_DATA = 2
  974. Global Const G_EXTRA_DATA = 3
  975. Global Const G_LABEL_TEXT = 4
  976. Global Const G_LEGEND_TEXT = 5
  977. Global Const G_PATTERN_DATA = 6
  978. Global Const G_SYMBOL_DATA = 7
  979. Global Const G_XPOS_DATA = 8
  980. Global Const G_ALL_DATA = 9
  981.  
  982. 'Draw Mode
  983. Global Const G_NO_ACTION = 0
  984. Global Const G_CLEAR = 1
  985. Global Const G_DRAW = 2
  986. Global Const G_BLIT = 3
  987. Global Const G_COPY = 4
  988. Global Const G_PRINT = 5
  989. Global Const G_WRITE = 6
  990.  
  991. 'Print Options
  992. Global Const G_BORDER = 2
  993.  
  994. 'Pie Chart Options             '
  995. Global Const G_NO_LINES = 1
  996. Global Const G_COLORED = 2
  997. Global Const G_PERCENTS = 4
  998.  
  999. 'Bar Chart Options             '
  1000. 'Global Const G_HORIZONTAL = 1
  1001. Global Const G_STACKED = 2
  1002. Global Const G_PERCENTAGE = 4
  1003. Global Const G_Z_CLUSTERED = 6
  1004.  
  1005. 'Gantt Chart Options           '
  1006. Global Const G_SPACED_BARS = 1
  1007.  
  1008. 'Line/Polar Chart Options      '
  1009. Global Const G_SYMBOLS = 1
  1010. Global Const G_STICKS = 2
  1011. Global Const G_LINES = 4
  1012.  
  1013. 'Area Chart Options            '
  1014. Global Const G_ABSOLUTE = 1
  1015. Global Const G_PERCENT = 2
  1016.  
  1017. 'HLC Chart Options             '
  1018. Global Const G_NO_CLOSE = 1
  1019. Global Const G_NO_HIGH_LOW = 2
  1020.  
  1021.  
  1022. '---------------------------------------
  1023. 'Key Status Control
  1024. '---------------------------------------
  1025. 'Style
  1026. Global Const KEYSTAT_CAPSLOCK = 0
  1027. Global Const KEYSTAT_NUMLOCK = 1
  1028. Global Const KEYSTAT_INSERT = 2
  1029. Global Const KEYSTAT_SCROLLLOCK = 3
  1030.  
  1031.  
  1032. '---------------------------------------
  1033. 'MCI Control (Multimedia)
  1034. '---------------------------------------
  1035. 'NOTE:
  1036. 'Please use the updated Multimedia constants
  1037. 'in the WINMMSYS.TXT file from the \VB\WINAPI
  1038. 'subdirectory.
  1039.  
  1040. 'Mode Property
  1041. 'Global Const MCI_MODE_NOT_OPEN = 11
  1042. 'Global Const MCI_MODE_STOP = 12
  1043. 'Global Const MCI_MODE_PLAY = 13
  1044. 'Global Const MCI_MODE_RECORD = 14
  1045. 'Global Const MCI_MODE_SEEK = 15
  1046. 'Global Const MCI_MODE_PAUSE = 16
  1047. 'Global Const MCI_MODE_READY = 17
  1048.  
  1049. 'NotifyValue Property
  1050. 'Global Const MCI_NOTIFY_SUCCESSFUL = 1
  1051. 'Global Const MCI_NOTIFY_SUPERSEDED = 2
  1052. 'Global Const MCI_ABORTED = 4
  1053. 'Global Const MCI_FAILURE = 8
  1054.  
  1055. 'Orientation Property
  1056. 'Global Const MCI_ORIENT_HORZ = 0
  1057. 'Global Const MCI_ORIENT_VERT = 1
  1058.  
  1059. 'RecordMode Porperty
  1060. 'Global Const MCI_RECORD_INSERT = 0
  1061. 'Global Const MCI_RECORD_OVERWRITE = 1
  1062.  
  1063. 'TimeFormat Property
  1064. 'Global Const MCI_FORMAT_MILLISECONDS = 0
  1065. 'Global Const MCI_FORMAT_HMS = 1
  1066. 'Global Const MCI_FORMAT_MSF = 2
  1067. 'Global Const MCI_FORMAT_FRAMES = 3
  1068. 'Global Const MCI_FORMAT_SMPTE_24 = 4
  1069. 'Global Const MCI_FORMAT_SMPTE_25 = 5
  1070. 'Global Const MCI_FORMAT_SMPTE_30 = 6
  1071. 'Global Const MCI_FORMAT_SMPTE_30DROP = 7
  1072. 'Global Const MCI_FORMAT_BYTES = 8
  1073. 'Global Const MCI_FORMAT_SAMPLES = 9
  1074. 'Global Const MCI_FORMAT_TMSF = 10
  1075.  
  1076.  
  1077. '---------------------------------------
  1078. 'Spin Button
  1079. '---------------------------------------
  1080. 'SpinOrientation
  1081. Global Const SPIN_VERTICAL = 0
  1082. Global Const SPIN_HORIZONTAL = 1
  1083.  
  1084.  
  1085. '---------------------------------------
  1086. 'Masked Edit Control
  1087. '---------------------------------------
  1088. 'ClipMode
  1089. Global Const ME_INCLIT = 0
  1090. Global Const ME_EXCLIT = 1
  1091.  
  1092.  
  1093. '---------------------------------------
  1094. 'Comm Control
  1095. '---------------------------------------
  1096. 'Handshaking
  1097. Global Const MSCOMM_HANDSHAKE_NONE = 0
  1098. Global Const MSCOMM_HANDSHAKE_XONXOFF = 1
  1099. Global Const MSCOMM_HANDSHAKE_RTS = 2
  1100. Global Const MSCOMM_HANDSHAKE_RTSXONXOFF = 3
  1101.  
  1102. 'Event constants
  1103. Global Const MSCOMM_EV_SEND = 1
  1104. Global Const MSCOMM_EV_RECEIVE = 2
  1105. Global Const MSCOMM_EV_CTS = 3
  1106. Global Const MSCOMM_EV_DSR = 4
  1107. Global Const MSCOMM_EV_CD = 5
  1108. Global Const MSCOMM_EV_RING = 6
  1109. Global Const MSCOMM_EV_EOF = 7
  1110.  
  1111. 'Error code constants
  1112. Global Const MSCOMM_ER_BREAK = 1001
  1113. Global Const MSCOMM_ER_CTSTO = 1002
  1114. Global Const MSCOMM_ER_DSRTO = 1003
  1115. Global Const MSCOMM_ER_FRAME = 1004
  1116. Global Const MSCOMM_ER_OVERRUN = 1006
  1117. Global Const MSCOMM_ER_CDTO = 1007
  1118. Global Const MSCOMM_ER_RXOVER = 1008
  1119. Global Const MSCOMM_ER_RXPARITY = 1009
  1120. Global Const MSCOMM_ER_TXFULL = 1010
  1121.  
  1122.  
  1123. '---------------------------------------
  1124. ' MAPI SESSION CONTROL CONSTANTS
  1125. '---------------------------------------
  1126. 'Action
  1127. Global Const SESSION_SIGNON = 1
  1128. Global Const SESSION_SIGNOFF = 2
  1129.  
  1130.  
  1131. '---------------------------------------
  1132. ' MAPI MESSAGE CONTROL CONSTANTS
  1133. '---------------------------------------
  1134. 'Action
  1135. Global Const MESSAGE_FETCH = 1             ' Load all messages from message store
  1136. Global Const MESSAGE_SENDDLG = 2           ' Send mail bring up default mapi dialog
  1137. Global Const MESSAGE_SEND = 3              ' Send mail without default mapi dialog
  1138. Global Const MESSAGE_SAVEMSG = 4           ' Save message in the compose buffer
  1139. Global Const MESSAGE_COPY = 5              ' Copy current message to compose buffer
  1140. Global Const MESSAGE_COMPOSE = 6           ' Initialize compose buffer (previous
  1141.                        ' data is lost
  1142. Global Const MESSAGE_REPLY = 7             ' Fill Compose buffer as REPLY
  1143. Global Const MESSAGE_REPLYALL = 8          ' Fill Compose buffer as REPLY ALL
  1144. Global Const MESSAGE_FORWARD = 9           ' Fill Compose buffer as FORWARD
  1145. Global Const MESSAGE_DELETE = 10           ' Delete current message
  1146. Global Const MESSAGE_SHOWADBOOK = 11       ' Show Address book
  1147. Global Const MESSAGE_SHOWDETAILS = 12      ' Show details of the current recipient
  1148. Global Const MESSAGE_RESOLVENAME = 13      ' Resolve the display name of the recipient
  1149. Global Const RECIPIENT_DELETE = 14            ' Fill Compose buffer as FORWARD
  1150. Global Const ATTACHMENT_DELETE = 15          ' Delete current message
  1151.  
  1152.  
  1153. '---------------------------------------
  1154. '  ERROR CONSTANT DECLARATIONS (MAPI CONTROLS)
  1155. '---------------------------------------
  1156. Global Const SUCCESS_SUCCESS = 32000
  1157. Global Const MAPI_USER_ABORT = 32001
  1158. Global Const MAPI_E_FAILURE = 32002
  1159. Global Const MAPI_E_LOGIN_FAILURE = 32003
  1160. Global Const MAPI_E_DISK_FULL = 32004
  1161. Global Const MAPI_E_INSUFFICIENT_MEMORY = 32005
  1162. Global Const MAPI_E_ACCESS_DENIED = 32006
  1163. Global Const MAPI_E_TOO_MANY_SESSIONS = 32008
  1164. Global Const MAPI_E_TOO_MANY_FILES = 32009
  1165. Global Const MAPI_E_TOO_MANY_RECIPIENTS = 32010
  1166. Global Const MAPI_E_ATTACHMENT_NOT_FOUND = 32011
  1167. Global Const MAPI_E_ATTACHMENT_OPEN_FAILURE = 32012
  1168. Global Const MAPI_E_ATTACHMENT_WRITE_FAILURE = 32013
  1169. Global Const MAPI_E_UNKNOWN_RECIPIENT = 32014
  1170. Global Const MAPI_E_BAD_RECIPTYPE = 32015
  1171. Global Const MAPI_E_NO_MESSAGES = 32016
  1172. Global Const MAPI_E_INVALID_MESSAGE = 32017
  1173. Global Const MAPI_E_TEXT_TOO_LARGE = 32018
  1174. Global Const MAPI_E_INVALID_SESSION = 32019
  1175. Global Const MAPI_E_TYPE_NOT_SUPPORTED = 32020
  1176. Global Const MAPI_E_AMBIGUOUS_RECIPIENT = 32021
  1177. Global Const MAPI_E_MESSAGE_IN_USE = 32022
  1178. Global Const MAPI_E_NETWORK_FAILURE = 32023
  1179. Global Const MAPI_E_INVALID_EDITFIELDS = 32024
  1180. Global Const MAPI_E_INVALID_RECIPS = 32025
  1181. Global Const MAPI_E_NOT_SUPPORTED = 32026
  1182.  
  1183. Global Const CONTROL_E_SESSION_EXISTS = 32050
  1184. Global Const CONTROL_E_INVALID_BUFFER = 32051
  1185. Global Const CONTROL_E_INVALID_READ_BUFFER_ACTION = 32052
  1186. Global Const CONTROL_E_NO_SESSION = 32053
  1187. Global Const CONTROL_E_INVALID_RECIPIENT = 32054
  1188. Global Const CONTROL_E_INVALID_COMPOSE_BUFFER_ACTION = 32055
  1189. Global Const CONTROL_E_FAILURE = 32056
  1190. Global Const CONTROL_E_NO_RECIPIENTS = 32057
  1191. Global Const CONTROL_E_NO_ATTACHMENTS = 32058
  1192.  
  1193.  
  1194. '---------------------------------------
  1195. '  MISCELLANEOUS GLOBAL CONSTANT DECLARATIONS (MAPI CONTROLS)
  1196. '---------------------------------------
  1197. Global Const RECIPTYPE_ORIG = 0
  1198. Global Const RECIPTYPE_TO = 1
  1199. Global Const RECIPTYPE_CC = 2
  1200. Global Const RECIPTYPE_BCC = 3
  1201.  
  1202. Global Const ATTACHTYPE_DATA = 0
  1203. Global Const ATTACHTYPE_EOLE = 1
  1204. Global Const ATTACHTYPE_SOLE = 2
  1205.  
  1206.  
  1207. '-------------------------------------------------
  1208. '  Outline
  1209. '-------------------------------------------------
  1210. ' PictureType
  1211. Global Const MSOUTLINE_PICTURE_CLOSED = 0
  1212. Global Const MSOUTLINE_PICTURE_OPEN = 1
  1213. Global Const MSOUTLINE_PICTURE_LEAF = 2
  1214.  
  1215. 'Outline Control Error Constants
  1216. Global Const MSOUTLINE_BADPICFORMAT = 32000
  1217. Global Const MSOUTLINE_BADINDENTATION = 32001
  1218. Global Const MSOUTLINE_MEM = 32002
  1219. Global Const MSOUTLINE_PARENTNOTEXPANDED = 32003
  1220.  
  1221.  
  1222.